from PyQt5 import QtCore, QtGui, QtWidgets

print "%-40s, %d"%("None_", QtCore.QEvent.None_)
print "%-40s, %d"%("Timer", QtCore.QEvent.Timer)
print "%-40s, %d"%("MouseButtonPress", QtCore.QEvent.MouseButtonPress)
print "%-40s, %d"%("MouseButtonRelease", QtCore.QEvent.MouseButtonRelease)
print "%-40s, %d"%("MouseButtonDblClick", QtCore.QEvent.MouseButtonDblClick)
print "%-40s, %d"%("MouseMove", QtCore.QEvent.MouseMove)
print "%-40s, %d"%("KeyPress", QtCore.QEvent.KeyPress)
print "%-40s, %d"%("KeyRelease", QtCore.QEvent.KeyRelease)
print "%-40s, %d"%("FocusIn", QtCore.QEvent.FocusIn)
print "%-40s, %d"%("FocusOut", QtCore.QEvent.FocusOut)
print "%-40s, %d"%("Enter", QtCore.QEvent.Enter)
print "%-40s, %d"%("Leave", QtCore.QEvent.Leave)
print "%-40s, %d"%("Paint", QtCore.QEvent.Paint)
print "%-40s, %d"%("Move", QtCore.QEvent.Move)
print "%-40s, %d"%("Resize", QtCore.QEvent.Resize)
print "%-40s, %d"%("Show", QtCore.QEvent.Show)
print "%-40s, %d"%("Hide", QtCore.QEvent.Hide)
print "%-40s, %d"%("Close", QtCore.QEvent.Close)
print "%-40s, %d"%("ParentChange", QtCore.QEvent.ParentChange)
print "%-40s, %d"%("ParentAboutToChange", QtCore.QEvent.ParentAboutToChange)
print "%-40s, %d"%("ThreadChange", QtCore.QEvent.ThreadChange)
print "%-40s, %d"%("WindowActivate", QtCore.QEvent.WindowActivate)
print "%-40s, %d"%("WindowDeactivate", QtCore.QEvent.WindowDeactivate)
print "%-40s, %d"%("ShowToParent", QtCore.QEvent.ShowToParent)
print "%-40s, %d"%("HideToParent", QtCore.QEvent.HideToParent)
print "%-40s, %d"%("Wheel", QtCore.QEvent.Wheel)
print "%-40s, %d"%("WindowTitleChange", QtCore.QEvent.WindowTitleChange)
print "%-40s, %d"%("WindowIconChange", QtCore.QEvent.WindowIconChange)
print "%-40s, %d"%("ApplicationWindowIconChange", QtCore.QEvent.ApplicationWindowIconChange)
print "%-40s, %d"%("ApplicationFontChange", QtCore.QEvent.ApplicationFontChange)
print "%-40s, %d"%("ApplicationLayoutDirectionChange", QtCore.QEvent.ApplicationLayoutDirectionChange)
print "%-40s, %d"%("ApplicationPaletteChange", QtCore.QEvent.ApplicationPaletteChange)
print "%-40s, %d"%("PaletteChange", QtCore.QEvent.PaletteChange)
print "%-40s, %d"%("Clipboard", QtCore.QEvent.Clipboard)
print "%-40s, %d"%("MetaCall", QtCore.QEvent.MetaCall)
print "%-40s, %d"%("SockAct", QtCore.QEvent.SockAct)
print "%-40s, %d"%("WinEventAct", QtCore.QEvent.WinEventAct)
print "%-40s, %d"%("DeferredDelete", QtCore.QEvent.DeferredDelete)
print "%-40s, %d"%("DragEnter", QtCore.QEvent.DragEnter)
print "%-40s, %d"%("DragMove", QtCore.QEvent.DragMove)
print "%-40s, %d"%("DragLeave", QtCore.QEvent.DragLeave)
print "%-40s, %d"%("Drop", QtCore.QEvent.Drop)
print "%-40s, %d"%("ChildAdded", QtCore.QEvent.ChildAdded)
print "%-40s, %d"%("ChildPolished", QtCore.QEvent.ChildPolished)
print "%-40s, %d"%("ChildRemoved", QtCore.QEvent.ChildRemoved)
print "%-40s, %d"%("PolishRequest", QtCore.QEvent.PolishRequest)
print "%-40s, %d"%("Polish", QtCore.QEvent.Polish)
print "%-40s, %d"%("LayoutRequest", QtCore.QEvent.LayoutRequest)
print "%-40s, %d"%("UpdateRequest", QtCore.QEvent.UpdateRequest)
print "%-40s, %d"%("UpdateLater", QtCore.QEvent.UpdateLater)
print "%-40s, %d"%("ContextMenu", QtCore.QEvent.ContextMenu)
print "%-40s, %d"%("InputMethod", QtCore.QEvent.InputMethod)
print "%-40s, %d"%("TabletMove", QtCore.QEvent.TabletMove)
print "%-40s, %d"%("LocaleChange", QtCore.QEvent.LocaleChange)
print "%-40s, %d"%("LanguageChange", QtCore.QEvent.LanguageChange)
print "%-40s, %d"%("LayoutDirectionChange", QtCore.QEvent.LayoutDirectionChange)
print "%-40s, %d"%("TabletPress", QtCore.QEvent.TabletPress)
print "%-40s, %d"%("TabletRelease", QtCore.QEvent.TabletRelease)
print "%-40s, %d"%("OkRequest", QtCore.QEvent.OkRequest)
print "%-40s, %d"%("IconDrag", QtCore.QEvent.IconDrag)
print "%-40s, %d"%("FontChange", QtCore.QEvent.FontChange)
print "%-40s, %d"%("EnabledChange", QtCore.QEvent.EnabledChange)
print "%-40s, %d"%("ActivationChange", QtCore.QEvent.ActivationChange)
print "%-40s, %d"%("StyleChange", QtCore.QEvent.StyleChange)
print "%-40s, %d"%("IconTextChange", QtCore.QEvent.IconTextChange)
print "%-40s, %d"%("ModifiedChange", QtCore.QEvent.ModifiedChange)
print "%-40s, %d"%("MouseTrackingChange", QtCore.QEvent.MouseTrackingChange)
print "%-40s, %d"%("WindowBlocked", QtCore.QEvent.WindowBlocked)
print "%-40s, %d"%("WindowUnblocked", QtCore.QEvent.WindowUnblocked)
print "%-40s, %d"%("WindowStateChange", QtCore.QEvent.WindowStateChange)
print "%-40s, %d"%("ToolTip", QtCore.QEvent.ToolTip)
print "%-40s, %d"%("WhatsThis", QtCore.QEvent.WhatsThis)
print "%-40s, %d"%("StatusTip", QtCore.QEvent.StatusTip)
print "%-40s, %d"%("ActionChanged", QtCore.QEvent.ActionChanged)
print "%-40s, %d"%("ActionAdded", QtCore.QEvent.ActionAdded)
print "%-40s, %d"%("ActionRemoved", QtCore.QEvent.ActionRemoved)
print "%-40s, %d"%("FileOpen", QtCore.QEvent.FileOpen)
print "%-40s, %d"%("Shortcut", QtCore.QEvent.Shortcut)
print "%-40s, %d"%("ShortcutOverride", QtCore.QEvent.ShortcutOverride)
print "%-40s, %d"%("WhatsThisClicked", QtCore.QEvent.WhatsThisClicked)
print "%-40s, %d"%("ToolBarChange", QtCore.QEvent.ToolBarChange)
print "%-40s, %d"%("ApplicationActivate", QtCore.QEvent.ApplicationActivate)
print "%-40s, %d"%("ApplicationActivated", QtCore.QEvent.ApplicationActivated)
print "%-40s, %d"%("ApplicationDeactivate", QtCore.QEvent.ApplicationDeactivate)
print "%-40s, %d"%("ApplicationDeactivated", QtCore.QEvent.ApplicationDeactivated)
print "%-40s, %d"%("QueryWhatsThis", QtCore.QEvent.QueryWhatsThis)
print "%-40s, %d"%("EnterWhatsThisMode", QtCore.QEvent.EnterWhatsThisMode)
print "%-40s, %d"%("LeaveWhatsThisMode", QtCore.QEvent.LeaveWhatsThisMode)
print "%-40s, %d"%("ZOrderChange", QtCore.QEvent.ZOrderChange)
print "%-40s, %d"%("HoverEnter", QtCore.QEvent.HoverEnter)
print "%-40s, %d"%("HoverLeave", QtCore.QEvent.HoverLeave)
print "%-40s, %d"%("HoverMove", QtCore.QEvent.HoverMove)
print "%-40s, %d"%("GraphicsSceneMouseMove", QtCore.QEvent.GraphicsSceneMouseMove)
print "%-40s, %d"%("GraphicsSceneMousePress", QtCore.QEvent.GraphicsSceneMousePress)
print "%-40s, %d"%("GraphicsSceneMouseRelease", QtCore.QEvent.GraphicsSceneMouseRelease)
print "%-40s, %d"%("GraphicsSceneMouseDoubleClick", QtCore.QEvent.GraphicsSceneMouseDoubleClick)
print "%-40s, %d"%("GraphicsSceneContextMenu", QtCore.QEvent.GraphicsSceneContextMenu)
print "%-40s, %d"%("GraphicsSceneHoverEnter", QtCore.QEvent.GraphicsSceneHoverEnter)
print "%-40s, %d"%("GraphicsSceneHoverMove", QtCore.QEvent.GraphicsSceneHoverMove)
print "%-40s, %d"%("GraphicsSceneHoverLeave", QtCore.QEvent.GraphicsSceneHoverLeave)
print "%-40s, %d"%("GraphicsSceneHelp", QtCore.QEvent.GraphicsSceneHelp)
print "%-40s, %d"%("GraphicsSceneDragEnter", QtCore.QEvent.GraphicsSceneDragEnter)
print "%-40s, %d"%("GraphicsSceneDragMove", QtCore.QEvent.GraphicsSceneDragMove)
print "%-40s, %d"%("GraphicsSceneDragLeave", QtCore.QEvent.GraphicsSceneDragLeave)
print "%-40s, %d"%("GraphicsSceneDrop", QtCore.QEvent.GraphicsSceneDrop)
print "%-40s, %d"%("GraphicsSceneWheel", QtCore.QEvent.GraphicsSceneWheel)
print "%-40s, %d"%("GraphicsSceneResize", QtCore.QEvent.GraphicsSceneResize)
print "%-40s, %d"%("GraphicsSceneMove", QtCore.QEvent.GraphicsSceneMove)
print "%-40s, %d"%("KeyboardLayoutChange", QtCore.QEvent.KeyboardLayoutChange)
print "%-40s, %d"%("DynamicPropertyChange", QtCore.QEvent.DynamicPropertyChange)
print "%-40s, %d"%("TabletEnterProximity", QtCore.QEvent.TabletEnterProximity)
print "%-40s, %d"%("TabletLeaveProximity", QtCore.QEvent.TabletLeaveProximity)
print "%-40s, %d"%("NonClientAreaMouseMove", QtCore.QEvent.NonClientAreaMouseMove)
print "%-40s, %d"%("NonClientAreaMouseButtonPress", QtCore.QEvent.NonClientAreaMouseButtonPress)
print "%-40s, %d"%("NonClientAreaMouseButtonRelease", QtCore.QEvent.NonClientAreaMouseButtonRelease)
print "%-40s, %d"%("NonClientAreaMouseButtonDblClick", QtCore.QEvent.NonClientAreaMouseButtonDblClick)
print "%-40s, %d"%("MacSizeChange", QtCore.QEvent.MacSizeChange)
print "%-40s, %d"%("ContentsRectChange", QtCore.QEvent.ContentsRectChange)
print "%-40s, %d"%("CursorChange", QtCore.QEvent.CursorChange)
print "%-40s, %d"%("ToolTipChange", QtCore.QEvent.ToolTipChange)
print "%-40s, %d"%("GrabMouse", QtCore.QEvent.GrabMouse)
print "%-40s, %d"%("UngrabMouse", QtCore.QEvent.UngrabMouse)
print "%-40s, %d"%("GrabKeyboard", QtCore.QEvent.GrabKeyboard)
print "%-40s, %d"%("UngrabKeyboard", QtCore.QEvent.UngrabKeyboard)
print "%-40s, %d"%("StateMachineSignal", QtCore.QEvent.StateMachineSignal)
print "%-40s, %d"%("StateMachineWrapped", QtCore.QEvent.StateMachineWrapped)
print "%-40s, %d"%("TouchBegin", QtCore.QEvent.TouchBegin)
print "%-40s, %d"%("TouchUpdate", QtCore.QEvent.TouchUpdate)
print "%-40s, %d"%("TouchEnd", QtCore.QEvent.TouchEnd)
print "%-40s, %d"%("RequestSoftwareInputPanel", QtCore.QEvent.RequestSoftwareInputPanel)
print "%-40s, %d"%("CloseSoftwareInputPanel", QtCore.QEvent.CloseSoftwareInputPanel)
print "%-40s, %d"%("WinIdChange", QtCore.QEvent.WinIdChange)
print "%-40s, %d"%("Gesture", QtCore.QEvent.Gesture)
print "%-40s, %d"%("GestureOverride", QtCore.QEvent.GestureOverride)
print "%-40s, %d"%("FocusAboutToChange", QtCore.QEvent.FocusAboutToChange)
print "%-40s, %d"%("ScrollPrepare", QtCore.QEvent.ScrollPrepare)
print "%-40s, %d"%("Scroll", QtCore.QEvent.Scroll)
print "%-40s, %d"%("Expose", QtCore.QEvent.Expose)
print "%-40s, %d"%("InputMethodQuery", QtCore.QEvent.InputMethodQuery)
print "%-40s, %d"%("OrientationChange", QtCore.QEvent.OrientationChange)
print "%-40s, %d"%("TouchCancel", QtCore.QEvent.TouchCancel)
print "%-40s, %d"%("PlatformPanel", QtCore.QEvent.PlatformPanel)
print "%-40s, %d"%("ApplicationStateChange", QtCore.QEvent.ApplicationStateChange)
print "%-40s, %d"%("ReadOnlyChange", QtCore.QEvent.ReadOnlyChange)
print "%-40s, %d"%("PlatformSurface", QtCore.QEvent.PlatformSurface)
print "%-40s, %d"%("TabletTrackingChange", QtCore.QEvent.TabletTrackingChange)
print "%-40s, %d"%("User", QtCore.QEvent.User)
print "%-40s, %d"%("MaxUser", QtCore.QEvent.MaxUser)

""" 
pboard> python -u "/home/long/work/sample/python/clipboard/qt_event.py"
None_                                   , 0
Timer                                   , 1
MouseButtonPress                        , 2
MouseButtonRelease                      , 3
MouseButtonDblClick                     , 4
MouseMove                               , 5
KeyPress                                , 6
KeyRelease                              , 7
FocusIn                                 , 8
FocusOut                                , 9
Enter                                   , 10
Leave                                   , 11
Paint                                   , 12
Move                                    , 13
Resize                                  , 14
Show                                    , 17
Hide                                    , 18
Close                                   , 19
ParentChange                            , 21
ParentAboutToChange                     , 131
ThreadChange                            , 22
WindowActivate                          , 24
WindowDeactivate                        , 25
ShowToParent                            , 26
HideToParent                            , 27
Wheel                                   , 31
WindowTitleChange                       , 33
WindowIconChange                        , 34
ApplicationWindowIconChange             , 35
ApplicationFontChange                   , 36
ApplicationLayoutDirectionChange        , 37
ApplicationPaletteChange                , 38
PaletteChange                           , 39
Clipboard                               , 40
MetaCall                                , 43
SockAct                                 , 50
WinEventAct                             , 132
DeferredDelete                          , 52
DragEnter                               , 60
DragMove                                , 61
DragLeave                               , 62
Drop                                    , 63
ChildAdded                              , 68
ChildPolished                           , 69
ChildRemoved                            , 71
PolishRequest                           , 74
Polish                                  , 75
LayoutRequest                           , 76
UpdateRequest                           , 77
UpdateLater                             , 78
ContextMenu                             , 82
InputMethod                             , 83
TabletMove                              , 87
LocaleChange                            , 88
LanguageChange                          , 89
LayoutDirectionChange                   , 90
TabletPress                             , 92
TabletRelease                           , 93
OkRequest                               , 94
IconDrag                                , 96
FontChange                              , 97
EnabledChange                           , 98
ActivationChange                        , 99
StyleChange                             , 100
IconTextChange                          , 101
ModifiedChange                          , 102
MouseTrackingChange                     , 109
WindowBlocked                           , 103
WindowUnblocked                         , 104
WindowStateChange                       , 105
ToolTip                                 , 110
WhatsThis                               , 111
StatusTip                               , 112
ActionChanged                           , 113
ActionAdded                             , 114
ActionRemoved                           , 115
FileOpen                                , 116
Shortcut                                , 117
ShortcutOverride                        , 51
WhatsThisClicked                        , 118
ToolBarChange                           , 120
ApplicationActivate                     , 121
ApplicationActivated                    , 121
ApplicationDeactivate                   , 122
ApplicationDeactivated                  , 122
QueryWhatsThis                          , 123
EnterWhatsThisMode                      , 124
LeaveWhatsThisMode                      , 125
ZOrderChange                            , 126
HoverEnter                              , 127
HoverLeave                              , 128
HoverMove                               , 129
GraphicsSceneMouseMove                  , 155
GraphicsSceneMousePress                 , 156
GraphicsSceneMouseRelease               , 157
GraphicsSceneMouseDoubleClick           , 158
GraphicsSceneContextMenu                , 159
GraphicsSceneHoverEnter                 , 160
GraphicsSceneHoverMove                  , 161
GraphicsSceneHoverLeave                 , 162
GraphicsSceneHelp                       , 163
GraphicsSceneDragEnter                  , 164
GraphicsSceneDragMove                   , 165
GraphicsSceneDragLeave                  , 166
GraphicsSceneDrop                       , 167
GraphicsSceneWheel                      , 168
GraphicsSceneResize                     , 181
GraphicsSceneMove                       , 182
KeyboardLayoutChange                    , 169
DynamicPropertyChange                   , 170
TabletEnterProximity                    , 171
TabletLeaveProximity                    , 172
NonClientAreaMouseMove                  , 173
NonClientAreaMouseButtonPress           , 174
NonClientAreaMouseButtonRelease         , 175
NonClientAreaMouseButtonDblClick        , 176
MacSizeChange                           , 177
ContentsRectChange                      , 178
CursorChange                            , 183
ToolTipChange                           , 184
GrabMouse                               , 186
UngrabMouse                             , 187
GrabKeyboard                            , 188
UngrabKeyboard                          , 189
StateMachineSignal                      , 192
StateMachineWrapped                     , 193
TouchBegin                              , 194
TouchUpdate                             , 195
TouchEnd                                , 196
RequestSoftwareInputPanel               , 199
CloseSoftwareInputPanel                 , 200
WinIdChange                             , 203
Gesture                                 , 198
GestureOverride                         , 202
FocusAboutToChange                      , 23
ScrollPrepare                           , 204
Scroll                                  , 205
Expose                                  , 206
InputMethodQuery                        , 207
OrientationChange                       , 208
TouchCancel                             , 209
PlatformPanel                           , 212
ApplicationStateChange                  , 214
ReadOnlyChange                          , 106
PlatformSurface                         , 217
TabletTrackingChange                    , 219
User                                    , 1000
MaxUser                                 , 65535
long@localhost:~/work/sample/python/clipboard> 
"""
